<!--------------------------------------- content------------------------>
<div id="content">
    <div id="film_detail">
        <div class="play_title"><?php echo $movie_name; ?></div>
        <div class="detail_img" >
            <img src="<?php echo base_url() . $movie_image; ?>" />
        </div>
        <div class="info_detail">
            <table border="0">
                <tr>
                    <td class="vinfo_col1">Thể loại:</td>
                    <td class="vinfo_col2"><?php echo $category_name; ?></td>
                </tr>
                <tr>
                    <td class="vinfo_col1">Phát hành:</td>
                    <td class="vinfo_col2"><?php echo $movie_year != 0 ? $movie_year : 'Đang cập nhật'; ?></td>
                </tr>
                <tr>
                    <td class="vinfo_col1">Đánh giá:</td>
                    <td class="vinfo_col2">
                        <ul class='star-rating' id='star-rating'>
                            <div id='mystar-rating'>
                                <?php
                                $rating = $movie_rating * 15;
                                ?>
                            <li class="current-rating" style="width:<?php echo $rating; ?>px"></li>
                            </div>
                              <li><a onclick='starRating(<?php echo $movie_id; ?>,1);' title='Tệ quá' class='one-star' style='cursor:pointer'></a></li>
                               <li><a onclick='starRating(<?php echo $movie_id; ?>, 2);' title='Xem được' class='two-stars' style='cursor:pointer'></a></li>
                               <li><a onclick='starRating(<?php echo $movie_id; ?>,3);' title='Cũng hay' class='three-stars' style='cursor:pointer'></a></li>
                               <li><a onclick='starRating(<?php echo $movie_id; ?>,4);' title='Hay' class='four-stars' style='cursor:pointer'></a></li>
                               <li><a onclick='starRating(<?php echo $movie_id; ?>,5);' title='Tuyệt vời' class='five-stars' style='cursor:pointer'></a></li>
                        </ul>
                        <div id="rating_thanks"></div>
                    </td>
                </tr>
                <tr>
                    <td class="vinfo_col1">Diễn viên:</td>
                    <td class="vinfo_col2" style="height: auto;"><?php echo $movie_actors; ?></td>
                </tr>
                <tr>
                    <td class="vinfo_col1">Số tập:</td>
                    <td class="vinfo_col2" style="height: auto;">
                        <?php
                        $stt=1;
                        foreach($episodeList as $episode):
                            $href = base_url() . 'video/play/' . $episode['episode_id'] . '/' . convertUri
                            ($episode['name']) . '.html';
                            echo "<span style=\"margin-right:7px;font-weight:bold;\"><a style=\"text-decoration:underline;\"title=\"".$episode['name']."\" href=\"$href\">" . $stt . "</a></span>";
                            $stt=$stt+1;
                        endforeach;
                        ?>
                    </td>
                </tr>

            </table>
        </div>

        <div class="vinfo_row1">
            <div class="vinfo_view"><a href="<?php echo base_url() . 'video/play/' . $episodeList[0]['episode_id'] . '/' . convertUri($episodeList[0]['name']) . '.html'; ?>"><img title="xem phim" style="cursor: pointer;" src="<?php echo base_url();?>images/play.png" alt=""></a></div>
            <div class="vinfo_cm"><a href="#vinfo_comment"><img title="bình luận" style="cursor: pointer;" src="<?php echo base_url();?>images/cm.png" alt=""></a></div>
            <div class="vinfo_share"><img title="chia sẻ" style="cursor: pointer;" src="<?php echo base_url();?>images/share.png" alt=""></div>
        </div>

    </div>
    <div id="right-content">
        <!-- phim hay khac -->
        <?php
        //film hay khac
        if(isset($differentMovies)){
            $data['movieList'] = $differentMovies;
            $this->load->view('movie/v_different',$data);
        }
        ?><!-- end phim hay khac-->
        <?php
        $this->load->view('movie/v_ads');
         ?>
    </div>
    <div id="vinfo_intro">
       <div class="intro">
           <div class="intro_title">Giới thiệu</div>
           <div class="intro_content">
               <div style="color: #0080ff;letter-spacing: 0.5px;">
                   <?php echo $movie_main_content; ?>
               </div>
               <?php echo $movie_main_content == '' ? 'Thông tin đang được cập nhật!' : $movie_introduction; ?><br>
           </div>
       </div>
    </div>

    <div id="vinfo_comment">
        <script type="text/javascript">
            var baseurl = "<?php echo base_url(); ?>";
            $(document).ready(function(){
                $("#cm-contents").load(baseurl+"comment/video/<?php echo $movie_id; ?>/comment.html");
            });
            function viewComment(page){
                $("#cm-contents").load(baseurl+"comment/video/<?php echo $movie_id; ?>/"+page+"/comment.html");
            }
        </script>
        <div class="cm_title">Bình luận</div>
        <div id="cm-contents"></div>
    </div>

</div>
<!--------------------------------- endcontent------------------------------->